﻿function Animation(element){
    this.transitions = [];
}

Animation.prototype = {
    interval: 13,
    transitions: null,
    
    addTransition: function(property, value, duration, timingFunction, delay){
        this.transitions.push({
            property: property,
            value: value,
            duration: duration,
            timingFunction: timingFunction,
            delay: delay
        });
    },
    
    removeTransition: function(property){
        for(var i = 0; i < this.transitions.length; i++){
            if(this.transitions[i].property === property)
                this.transitions.splice(i, 1);
        }
    },
    
    run: function(callback){
        callback();
    }
};